$(function(){
	 $(".navright div").click(function(){
	 $(this).addClass('on').siblings().removeClass('on');
	  var text = $(this).text();
	  switch(text){
	  	case "首页":jump("../index.html");break;
	  	case "关于我们":jump("./about.html");break;
	  	case "加入我们": jump("./join.html");break;
	  	case "新闻中心": jump("./news.html");break;
	  	case "应用下载": jump("./download.html");break;
	  }
	 }); 
	 //页面跳转
	function jump(url) {
		window.location.href = url;
	};
	//接受url所传参数
	function GetQueryString(name){
			var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
			var r = window.location.search.substr(1).match(reg);
			if(r != null)
				return unescape(r[2]);
			return null;
		};
})
